From d4a55b4a44d5834d3a1853376fedf651dce4d59d Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Tue, 28 Mar 2006 11:25:22 +0100 Subject: [PATCH] Have TCPXMLRPCServer inherit from SocketServer.ThreadingMixIn. This allows Xend to handle more than one request simultaneously once again. Signed-off-by: Ewan Mellor --- tools/python/xen/util/xmlrpclib2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/util/xmlrpclib2.py b/tools/python/xen/util/xmlrpclib2.py index f23c294e0c..538cbd8a95 100644 --- a/tools/python/xen/util/xmlrpclib2.py +++ b/tools/python/xen/util/xmlrpclib2.py @@ -24,6 +24,7 @@ from httplib import HTTPConnection, HTTP from xmlrpclib import Transport from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler import xmlrpclib, socket, os, traceback +import SocketServer # A new ServerProxy that also supports httpu urls. An http URL comes in the # form: @@ -62,7 +63,7 @@ class ServerProxy(xmlrpclib.ServerProxy): # true, and has an improved marshaller that serializes unknown exceptions # with full traceback information. -class TCPXMLRPCServer(SimpleXMLRPCServer): +class TCPXMLRPCServer(SocketServer.ThreadingMixIn, SimpleXMLRPCServer): allow_reuse_address = True def _marshaled_dispatch(self, data, dispatch_method = None): -- 2.30.2